<template>
  <!-- <div>{{ $route.params.name }}</div> -->
  <div>{{ name }}</div>
</template>

<script>
export default {
  props: {
    name: {
      type: String,
      default: 'sangfall'
    }
  },
  beforeRouteUpdate (to, from, next) {
    console.log(this)
    console.log(to.name, from.name)
    next()
  }
}
</script>
